from django.conf.urls import include, url
from django.contrib import admin
from tb_forms import views
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [

    url(r'^analyzetemp$',csrf_exempt(views.analyze)),
    url(r'^colors$',csrf_exempt(views.color)),
    url(r'^colors/(?P<pk>[0-9]+)$',csrf_exempt(views.colors)),
    url(r'^logos$', csrf_exempt(views.logo)),
    url(r'^logos/(?P<pk>[0-9]+)$', csrf_exempt(views.logos)),
    # url(r'^tmplconfig$',csrf_exempt(views.tmplconfig),
    # url(r'^tmplconfig/(?P<pk>[0-9]+)$',csrf_exempt(views.tmplconfi),
    url(r'^tmplcategory$',csrf_exempt(views.tmplcategorys)),
    url(r'^tmplcategory/(?P<pk>[0-9]+)$', csrf_exempt(views.tmplcategory)),
    url(r'^tmpls$',csrf_exempt(views.tmpls)),
    url(r'^tmpls/(?P<pk>[0-9]+)$',csrf_exempt(views.tmpl)),
    url(r'^forms$',csrf_exempt(views.forms)),
    url(r'^fileupload$',csrf_exempt(views.file_upload)),
    url(r'^forms/(?P<pk>[0-9]+)$',csrf_exempt(views.form)),
    # url(r'^formsfile$',csrf_exempt(views.formsfile),
    url(r'^datasource$',csrf_exempt(views.datasource)),
    url(r'^datasource/item$',csrf_exempt(views.item)),
    url(r'^datasource/item/parser$',csrf_exempt(views.parser)),
    url(r'^drafts$', csrf_exempt(views.drafts)),
    url(r'^drafts/(?P<pk>[0-9]+)$', csrf_exempt(views.draft)),
    url(r'^file_delete$', csrf_exempt(views.file_delete)),
]
